from django.conf.urls import url
from django.contrib import admin
from .views import index_views,user_views,cate_views,goods_views
urlpatterns = [
	url(r'^$', index_views.login,name='myadmin_login'),
	url(r'^index$', index_views.index,name='myadmin_index'),
	url(r'^vipuser/$', user_views.vipuser,name='myadmin_vipuser'),
	url(r'^adduser/$',user_views.adduser,name='myadmin_adduser'),
	url(r'^deluser$',user_views.deluser,name='myadmin_deluser'),
	url(r'^edituser$',user_views.edituser,name='myadmin_edituser'),
	url(r'^changes$',user_views.changes,name='myadmin_changes'),
	url(r'^respwd$',user_views.respwd,name='myadmin_respwd'),
	 # 商品的分类
	 url(r'^addcate$',cate_views.addcate,name='myadmin_addcate'),
	 url(r'^listcate$',cate_views.catelist,name='myadmin_listcate'),
	 url(r'^delcate$',cate_views.delcate,name='myadmin_delcate'),
	 url(r'^editcate/$', cate_views.editcate,name='myadmin_editcate'),
	 # 商品
	 url(r'^addgoods/$', goods_views.addgoods,name='myadmin_addgoods'),
	 url(r'^listgoods/$', goods_views.listgoods,name='myadmin_listgoods'),
	 url(r'^goodsinsert/$', goods_views.goodsinsert,name='myadmin_goodsinsert'),
	 url(r'^delgoods/$', goods_views.delgoods,name='myadmin_delgoods'),
	 url(r'^editgoods/$', goods_views.editgoods,name='myadmin_editgoods'),

	 #denglu
	 url(r'^login/$', index_views.login,name='myadmin_login'),
	# yzm
	url(r'^verifycode/$', index_views.verifycode,name='myadmin_yzm'),
	url(r'^outlogin/$', index_views.outlogin,name='myadmin_outlogin'),

]
